package com.fengmi.api.cms;

import com.fengmi.cms.Content;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("fengmi-cms")
@RequestMapping("/cms/content")
public interface CmsApi {
    @RequestMapping("getAllContentsList/{categoryId}")
    public List<Content> getAllContentsList(@PathVariable("categoryId") Long categoryId);

}
